﻿using BLL;
using lBLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebApplication145.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class XialaController : ControllerBase, lXialaBLL
    {
        private readonly lXialaBLL db;

        public XialaController(lXialaBLL db)
        {
            this.db = db;
        }
        [HttpGet("Xiala")]
        public List<Hoteinfor> Xiala()
        {
            return db.Xiala();
        }
    }
}
